home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 8
/
008.d81
/
slot machine
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
105 lines
10 poke53280,2:poke53281,0:print"[155]":z=0
20 goto720
30 print"[147]"
40 print"";
50 print"[169] [223]"
60 print" [146][154]bandito[155] "
70 print" [175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][155]"
80 print" "
90 print" [146] [146] [146] "
100 print" [146] [146] [146] "
110 print" [146] [146] [146] "
120 print" "
130 print" [183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][155]"
140 print" [146] "
150 print" "
160 print" "
170 print"[145][145][145][185][185][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][185][185][155]"
180 print"";
190 print:print"[158]spent"tab(17)"won"tab(26)"balance"
200 print:print" "
210 fori=1to700:nexti:ifz=0thengosub920:z=1
220 a=ti/60
230 x=int(rnd(ti)*5+1)
240 on x goto 290,260,270,250,280
250 a$="[193]":goto300
260 a$="[211]":goto300
270 a$="[218]":goto300
280 a$="[154][216]":goto300
290 a$="[158][209]"
300 print"";a$
310 y=int(rnd(ti)*5+1)
320 on y goto 360,350,340,370,330
330 b$="[193]":goto380
340 b$="[211]":goto380
350 b$="[218]":goto380
360 b$="[154][216]":goto380
370 b$="[158][209]"
380 print"";b$
390 z=int(rnd(ti)*5+1)
400 on z goto 410,450,420,440,430
410 c$="[193]":goto460
420 c$="[211]":goto460
430 c$="[218]":goto460
440 c$="[154][216]":goto460
450 c$="[158][209]"
460 print"";c$
470 b=ti/60:c=b-a
480 ifc<2then230
490 ifc<4then310
500 ifc<6then390
510 ifa$=b$andb$=c$thengoto530
520 goto610
530 print"jackpot[146]"
540 forx=1to10
550 fori=1to200:next
560 print"[145] "
570 fori=1to200:next
580 print"[145]jackpot[146]"
590 nextx
600 s=s+.5:w=w+s:b1=w-s:goto640
610 ifa$=b$orb$=c$ora$=c$thenprint"[153]doubles[146]":goto630
620 print"[154] sorry ":s=s+.5:w=w:b1=w-s:goto640
630 s=s+.5:w=w+1:b1=w-s
640 print"[158]spent"tab(17)"won"tab(26)"balance"
650 fori=1to550:next
660 print"[153]";
670 printtab(6)"$"s tab(16)"$"w tab(28)"[150]$"b1:print"[155]"
680 gety$
690 ify$="[133]"thengosub920:goto40
700 ify$="[134]"thenprint"[145][145][145][145][145][145][156] final standing [146][154]":goto63000
710 goto680
720 print"[147]":print" this program is a slot-machine":print
730 print"simulation. the one-armed bandit":print
740 print"accepts only half-dollars. you will":print
750 print"be asked to insert your coin by":print
760 print"typing f1. simply type f1":print
770 print"after each turn to continue the":print
780 print"the game. the computer will keep a":print
790 print"record of your losses and winnings.":print
800 print"if doubles appear you win":print
810 print"$1.00. if a jackpot appears you win":print
820 print"the amount you have spent. please":print
830 print"type c to continue directions."
840 getq$:ifq$<>"c"then840
850 print"[147]":print" the program runs continously":print
860 print"upon the insertion of your coin.":print
870 print"therefore,to end the game just":print
880 print"press the f3 key. please insert":print
890 print"your coin to begin."
900 gety$:ify$<>"[133]"then900
910 goto30
920 fori=0to160step40
930 poke1245+i,121:poke1246+i,121:poke55517+i,0:poke55518+i,0
940 poke1285+i,121:poke1286+i,121:poke55557+i,1:poke55558+i,1
950 nexti
960 fori=160to0step-40
970 poke1245+i,121:poke1246+i,121:poke55517+i,1:poke55518+i,1
980 poke1285+i,121:poke1286+i,121:poke55557+i,0:poke55558+i,0
990 poke1285+i,117:poke55557+i,1
1000 nexti: return
63000 rem connect back to l.s.
63001 fordl=1to2000:nextdl
63002 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
63004 poke198,0:poke631,13:poke632,13:poke198,2:end